package com.aob.service.impl;

import com.aob.dao.RegisterDao;
import com.aob.dao.impl.RegisterDaoImpl;
import com.aob.service.RegisterService;
import org.springframework.stereotype.Service;

@Service("registerService")
public class registerServiceImpl implements RegisterService {

    private RegisterDao registerDao = new RegisterDaoImpl();

    @Override
    public boolean sendEmailCode(String email, String emailCode) {
        return registerDao.sendEmailCode(email,emailCode);
    }

    @Override
    public boolean sendPhoneCode(String phone, String phoneCode) {
        return registerDao.sendPhoneCode(phone,phoneCode);
    }
}
